package com.qidian.check.util.config;

import com.qidian.check.util.interceptor.CheckParamHandlerInterceptor;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-17 20:23
 **/
@Configurable
public class CheckParamHandlerAutoConfiguration implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new CheckParamHandlerInterceptor()).addPathPatterns("/**/**");
    }
}
